package com.tsingtao.springboot2.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.tsingtao.springboot2.dto.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {


    @Select("select * from user ${ew.customSqlSegment}")
    List<User> customSelectList(@Param(Constants.WRAPPER) Wrapper wrapper);

}
